<div appBsModal #modal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="modal"
    aria-hidden="true" [config]="{backdrop: 'static', keyboard: true}">
    <div class="modal-dialog modal-xl">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title">
                    <span>{{menuName}}</span>

                </h4>

                <span class="pull-right" style="display:inline-block">
                    <button type="button" class="close" (click)="close()" [attr.aria-label]="l('Close')"  >
                        <i aria-hidden="true" class="bi bi-x"></i>
                    </button>
                </span>
            </div>
            <div class="modal-body">
                <ng-container #vc2></ng-container>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default font-weight-bold mr-1"
                    (click)="close()">{{"Cancel" | localize}}</button>

                <button (click)="save()" class="btn btn-primary blue  mr-1"  [buttonBusy]="saving"
                    [busyText]="l('SavingWithThreeDot')" *ngIf="menuConfig.imageText.enable && permissionDic['Pages.Tenant.MenuInfo.ImageText.Create']">
                        <i class="fa fa-save"></i>{{"Save" | localize}}
                </button>
                <button type="button" class="btn btn-primary blue"  (click)="synchorization()"
                  *ngIf="dataSynchronous && menuConfig.imageText.enable && permissionDic['Pages.Tenant.MenuInfo.ImageText.Create']">
                  <i class="bi bi-stickies"></i>{{"ManualSynchorization" | localize}}
                </button>
            </div>
        </div>
    </div>
</div>
<menu-extend-modal #extendedDataModal (callback)="imageTextUpdate($event)"></menu-extend-modal>
